// Copyright (c) 2016 Chef Software Inc. and/or applicable contributors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

.hab-side-nav {
  @include span-columns(2);
  padding-top: $base-spacing;
  position: relative;

  &:last-child {
    margin-right: rem(25);
  }

  .switcher {
    background-color: $hab-green;
    font-size: 90%;
    font-weight: 600;
    line-height: 56px;
    margin-bottom: 1em;
    margin-left: rem(-15);
    min-height: 56px;
    padding: 0 1em;

    a {
      color: $hab-off-white;
    }
  }

  h4 {
    font-size: 75%;
    margin-left: rem(15);
    white-space: nowrap;
  }

  hr {
    border-color: light-gray;
  }

  &--list {
    line-height: $base-line-height * 1.333;
    margin-bottom: $base-spacing;
    margin-left: rem(15);

    a {
      color: $base-font-color;
      display: block;

      &:hover {
        color: $hover-color;
      }

      &.active {
        background: url("../assets/images/sidebar-active.png") no-repeat right;
        background-size: 10px;
        color: $hover-color;
      }
    }
  }
}
